#include "GY_GraphicsItemGroup.h"

GY_GraphicsItemGroup::GY_GraphicsItemGroup(const QString &guid, QGraphicsItem *parent)
    : QGraphicsItemGroup(parent),GY_Object(guid,this)
{
}

void GY_GraphicsItemGroup::setGroupEditPointF()
{
    setEditPointF("leftTop",QPointF(this->boundingRect().x(),this->boundingRect().y()));
    setEditPointF("rightTop",QPointF(this->boundingRect().x()+this->boundingRect().width()
                                     ,this->boundingRect().y()));
    setEditPointF("leftBottom",QPointF(this->boundingRect().x()
                                       ,this->boundingRect().y()+this->boundingRect().height()));
    setEditPointF("rightBottom",QPointF(this->boundingRect().x() + this->boundingRect().width()
                                        ,this->boundingRect().y() + this->boundingRect().height()));
}
